package com.atguigu.serviceedu.client;

import com.atguigu.commonutils.vo.UcenterMemberVo;
import com.atguigu.serviceedu.entity.vo.UcenterMemberPay;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/*@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
 //根据用户id获取用户信息
         @GetMapping("/educenter/member/getInfoUc/{id}")
         public UcenterMemberPay getUcenterPay(@PathVariable("id") String id);
}*/
@Component
//@FeignClient(name = "service-ucenter",fallback = UcenterClientImpl.class)
@FeignClient(name = "service-ucenter")
public interface UcenterClient {

    @PostMapping("/educenter/member/getMemberInfoById/{memberId}")
    public UcenterMemberVo getMemberInfoById(@PathVariable String memberId);

}
